package com.example.shop.common.api;

public class ServiceReturn<T> {

    private ServiceStateCode stateCode;
    private T returnData;
    public ServiceReturn(ServiceStateCode stateCode,T returnData){
        this.stateCode = stateCode;
        this.returnData = returnData;
    }
    public ServiceStateCode getStateCode() {
        return stateCode;
    }

    public T getReturnData() {
        return returnData;
    }

    public void setStateCode(ServiceStateCode stateCode) {
        this.stateCode = stateCode;
    }

    public void setReturnData(T returnData) {
        this.returnData = returnData;
    }
}
